#include "mainwindow.h"
#include "device.h"
#include <iostream>
#include <QApplication>
#include <QMessageBox>
#include <QString>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    //132456 6зщавдлп
    Device coreSwitch("testCore");
    Device nextSwitch("testNext");

    std::cout<<coreSwitch.getName().toStdString()<<std::endl;
    std::cout<<nextSwitch.getName().toStdString()<<std::endl;

    coreSwitch.setName("tramtram");
    nextSwitch.setDeviceRoot(&coreSwitch);
    std::cout<<nextSwitch.deviceRoot->getName().toStdString()<<std::endl;

    return a.exec();
}
